package com.qingke.easyjava.demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.qingke.easyjava.HelloChinaBean;

public class BeanDefinitionDemo {
	
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
		
		HelloChinaBean chinaBean = context.getBean(HelloChinaBean.class);
		chinaBean.sayHelloWorld();
		chinaBean.sayHello();
		
		context.close();
		
	}
	
}
